package edu.cmu.cs214.hw9.facelook;

import java.util.Date;
/**
 * An Object that represents a Notification or a Status.  They are identical
 * in structure, so they share this class.  All methods are self explanatory
 * @author davidzheng
 *
 */
public class Post{

	private String email;
	private String message;
	private Date timestamp;
	public Post(String email, String msg, Date date) {
		this.email = email;
		message = msg;
		timestamp = date;
	}
	public String getMessage() {
		return message;
	}

	public Date getTimeStamp() {
		return timestamp;
	}
	public String getEmail()
	{
		return email;
	}

	public int compareTo(Post p) {
		return timestamp.compareTo(p.getTimeStamp());
	}

}
